import datetime
import time
from itertools import groupby
from operator import itemgetter

import math
from openerp import netsvc
from openerp import tools
from openerp.osv import fields, osv
from openerp.tools.translate import _


class hr_device(osv.osv):
    _name = "hr.device"
    _columns = {
        'name': fields.char('Device Name', size=64, readonly=True),
        'IpAddress': fields.char('Ip Address', size=64,readonly=True),
        'Port': fields.integer('Port',readonly=True),           
        'MacAddress': fields.char('Mac Address', size=64, translate=True,readonly=True),
        'DeviceRegisterStatus': fields.integer('Device Register Status',readonly=True),  
        'RegisterKey': fields.char('Register Key', size=250, translate=True,readonly=True),
        'DeviceType': fields.integer('Device Type', readonly=True),
        'FirstOnine': fields.date('First',required=True,readonly=True),
        'LastOnine': fields.date('Last',readonly=True),
        'IsOnline': fields.boolean("Is Online",readonly=True),
        }
    _defaults = {        
    }
    
hr_device()
